home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
mail
/
newmail3.000
/
newmail3
/
newmail
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-03-21
|
954b
|
43 lines
# Makefile for newmail(1), Steve Creps, July 17, 1991.
#LOC=/usr/contrib
LOC=/usr2/creps
BIN=$(LOC)/bin
MAN=$(LOC)/man/man1.Z
#
# Define for BSD, Ultrix, etc.
SYSTEM=BSD
# Define for SYS V, HP-UX, etc.
#SYSTEM=SYSV
#
OWNER=creps
CFLAGS=-O -s -D$(SYSTEM)
LINTFLAGS=-D$(SYSTEM)
KILLFILES=killnewmail.SYSV killnewmail.BSD
MANFILES=newmail.man BSD.man SYSV.man
FILES=newmail.c $(MANFILES) $(KILLFILES) README Makefile
newmail: newmail.c
cc $(CFLAGS) -o newmail newmail.c
newmail.1: newmail.man $(SYSTEM).man
cat $(SYSTEM).man newmail.man >newmail.1
killnewmail: killnewmail.$(SYSTEM)
cp killnewmail.$(SYSTEM) killnewmail
install: newmail newmail.1 killnewmail
chmod 0555 newmail killnewmail
chmod 0444 newmail.1
chown $(OWNER) newmail newmail.1 killnewmail
mv newmail killnewmail $(BIN)
compress newmail.1
mv newmail.1.Z $(MAN)/newmail.1
tar: newmail.tar
newmail.tar: $(FILES)
tar cvf newmail.tar $(FILES)
lint:
lint $(LINTFLAGS) newmail.c